(function(){"use strict";(function(){const i=window.iwArgsNoRightClick||{},c=i.rightclick==="Y",d=i.draganddrop==="Y",f=i.devtools==="Y",m=i.enableToast==="Y",u=i.toastMessage||"This content is protected";if(!c&&!d&&!f)return;const l=r=>{if(!m)return;if(!document.getElementById("iw-toast-styles")){const s=document.createElement("style");s.id="iw-toast-styles",s.textContent=` @keyframes iwSlideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes iwFadeOut { to { opacity: 0; transform: translateX(400px); } } .iw-toast { position: fixed; top: 20px; right: 20px; background: #f44336; color: #fff; padding: 16px 24px; border-radius: 4px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); z-index: 999999; animation: iwSlideIn 0.3s ease-out, iwFadeOut 0.3s ease-out 2.7s; } `,document.head.appendChild(s)}const e=document.querySelector(".iw-toast");e&&e.remove();const o=document.createElement("div");o.className="iw-toast",o.textContent=r,document.body.appendChild(o),setTimeout(()=>o.remove(),3e3)};if(c||d){const r=t=>t.target||t.srcElement||null,e=t=>t&&t.nodeType===1&&t.tagName==="IMG",o=t=>{if(!t||t.nodeType!==1)return!1;const n=window.getComputedStyle(t).backgroundImage;return typeof n=="string"&&n!=="none"},s=t=>t&&t.nodeType===1&&t.tagName==="A"&&t.querySelector("img"),a=t=>e(t)||o(t)||s(t),g=t=>{const n=r(t);a(n)&&(t.preventDefault(),l(u))},y=t=>{const n=r(t);a(n)&&(t.preventDefault(),l(u))};c&&(document.addEventListener("contextmenu",g,!0),document.addEventListener("copy",g,!0)),d&&document.addEventListener("dragstart",y,!0)}if(f){const r=e=>{const o=e.target||e.srcElement,s=o&&o.tagName?o.tagName.toLowerCase():"";if(s==="input"||s==="textarea"||o.isContentEditable)return;let a=!1;if(e.keyCode===123&&(a=!0),(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.keyCode===73&&(a=!0),(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.keyCode===74&&(a=!0),(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.keyCode===67&&(a=!0),(e.ctrlKey||e.metaKey)&&e.keyCode===85&&(a=!0),a)return e.preventDefault(),l(u),!1};document.addEventListener("keydown",r,!0)}})(); })();